//package com.fbs.controller;
//
//
//import com.fbs.entity.User;
//import com.fbs.service.UserService;
//import com.fbs.service.UserService02;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//
//@RestController
//@RequestMapping("user")
//public class UserController02 {
//    @Autowired
//    private UserService02 userService02;
//    @GetMapping("/{id}")
//    public User findByid(@PathVariable Integer id){
//        User byId = userService02.findById(id);
//        return byId;
//    }
//    @DeleteMapping ("/{id}")
//    public Integer del(@PathVariable Integer id){
//        Integer integer = userService02.delById(id);
//        return integer;
//    }
//    @PostMapping
//    public User save(@RequestBody User user){
//        User save = userService02.save(user);
//        return save;
//    }
//    @PutMapping
//    public User update(@RequestBody User user){
//        User update = userService02.update(user);
//        return update;
//    }
//
//}
